package com.bjfu.nlp.vo;

import com.sun.org.glassfish.gmbal.Description;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.ExampleObject;
import lombok.Data;
import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;

@Data
public class textSegmentationVo {
    @ApiModelProperty(value = "hanLP服务器url",example = "http://comdo.hanlp.com/hanlp/v2/segment/chinese")
    @NotEmpty(message = "请求url不能为空")

    private String url;

    @ApiModelProperty(value = "身份验证token",example = "5fe0c44cfb9f4a2f8d4d2d85c14dc7b81604395344104token")
    @NotEmpty(message = "请求token不能为空")
    private String token;

    @ApiModelProperty(value = "目标文本")
    @Valid
    @Size(min = 1,message = "文本数量至少大于等于1")
    private List<String> textList = new ArrayList<>();
}
